package com.softtown.modules.message.dao;

import com.softtown.common.dao.BaseDao;
import com.softtown.modules.message.entity.SysEmailContentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

/**
 * @version v1.0
 * @ProjectName: softtown-aioffice
 * @ClassName: SysEmailContentDao
 * @Description: 邮箱验证码Dao层
 * @Author: fuming
 * @Date: 2019/7/11 9:59
 */
@Mapper
@Component(value = "SysEmailContentDao")
public interface SysEmailContentDao extends BaseDao<SysEmailContentEntity> {

    /**
     * @Title: getByEmail
     * @Description: 根据邮箱查出信息接口
     * @param @param [email]
     * @return @return com.softtown.modules.message.entity.SysEmailContentEntity
     * @author fuming
     * @throws
     * @date 2019/7/12 17:51
     */
    SysEmailContentEntity getByEmail(String email);

    /**
     * @Title: saveEmail
     * @Description: 保存邮箱信息接口
     * @param @param [sysEmailContentEntity]
     * @return @return java.lang.Boolean
     * @author fuming
     * @throws
     * @date 2019/7/12 17:52
     */
    Boolean saveEmail(SysEmailContentEntity sysEmailContentEntity);

    /**
     * @Title: updateEmailCode
     * @Description: 更新邮箱信息接口
     * @param @param [sysEmailContentEntity]
     * @return @return java.lang.Boolean
     * @author fuming
     * @throws
     * @date 2019/7/12 17:53
     */
    Boolean updateEmailCode(SysEmailContentEntity sysEmailContentEntity);
}
